package com.hb.pojo.vo.base;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.hb.pojo.vo.validated.GroupD;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Positive;

@Data
public class BasicModel {

	@ApiModelProperty(hidden = true)
	@Positive(message = "page count must >= 1", groups = GroupD.class)
	@JsonInclude(JsonInclude.Include.NON_DEFAULT)
	private Integer pageNumber;

	@ApiModelProperty(hidden = true)
	@Positive(message = "page size must >= 1", groups = GroupD.class)
	@JsonInclude(JsonInclude.Include.NON_DEFAULT)
	private Integer pageSize;


}
